package edu.zut.cs.software.estateagent.notice.service.impl;


import javax.transaction.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import edu.zut.cs.software.base.service.impl.GenericManagerImpl;
import edu.zut.cs.software.estateagent.notice.dao.AnnouncementDao;
import edu.zut.cs.software.estateagent.notice.domain.Announcement;
import edu.zut.cs.software.estateagent.notice.service.AnnouncementManager;

@Component
@Transactional
public class AnnouncementManagerImpl extends GenericManagerImpl<Announcement, Long> implements AnnouncementManager {
	AnnouncementDao announcementDao; 

	@Override
	public Announcement findbyUsername(String username) {
		// TODO Auto-generated method stub
		return null;
	}

	@Autowired
	public void setAnnouncementDao(AnnouncementDao announcementDao) {
		this.announcementDao = announcementDao;
		this.dao = this.announcementDao;
	}
}